home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / c_news / 03 / patchit.bat < prev    next >
DOS Batch File  |  1988-01-15  |  1KB  |  46 lines

  1. echo off
  2. if /%1==/  goto HELP
  3. if /%1==?/ goto HELP
  4.  
  5. echo Medium model library
  6. tlib %1cm *gexit *gfreemem *ggetmem
  7. if errorlevel 1 goto ERROR
  8. patch    gexit.cm    gexit.obj
  9. patch gfreemem.cm gfreemem.obj
  10. patch  ggetmem.cm  ggetmem.obj
  11. tlib %1cm -+gexit -+gfreemem -+ggetmem
  12. if errorlevel 1 goto ERROR
  13. del %1cm.bak
  14.  
  15. echo Large  model library
  16. tlib %1cl *gexit *gfreemem *ggetmem
  17. if errorlevel 1 goto ERROR
  18. patch    gexit.cl    gexit.obj
  19. patch gfreemem.cl gfreemem.obj
  20. patch  ggetmem.cl  ggetmem.obj
  21. tlib %1cl -+gexit -+gfreemem -+ggetmem
  22. if errorlevel 1 goto ERROR
  23. del %1cl.bak
  24.  
  25. echo Huge   model library
  26. tlib %1ch *gexit *gfreemem *ggetmem
  27. if errorlevel 1 goto ERROR
  28. patch    gexit.ch    gexit.obj
  29. patch gfreemem.ch gfreemem.obj
  30. patch  ggetmem.ch  ggetmem.obj
  31. tlib %1ch -+gexit -+gfreemem -+ggetmem
  32. if errorlevel 1 goto ERROR
  33. del %1ch.bak
  34.  
  35. goto OK
  36.  
  37. :HELP
  38. echo Syntax is:  patchit  lib-directory
  39. echo -----------------------------------
  40. echo Example:    patchit  c:\turboc\lib\
  41. goto OK
  42.  
  43. :ERROR
  44. echo Errors !!!!
  45. :OK
  46.